from flask import current_app

from . import home_blue
from info import sr, db
import logging  # 系统内置的日志模块，可以将日志信息打印到控制台，也可以保存早文件中
from flask import render_template


# 2.使用蓝图装饰路由
@home_blue.route('/')
def index():

    return render_template('news/index.html')


@home_blue.route('/favicon.ico')
def get_favicon():
    # return current_app.send_static_file("news/favicon.ico")
    return current_app.send_static_file('news/favicon.ico')